package com.ktjiaoyu.server.utils;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * @auth wzy
 * @date 2023/3/14 15:30
 */
@Getter
@Setter
public class PageUtil<T> {
    private Integer totalCount;  //总记录数
    private Integer currPageNo;   //当前页码
    private List<T> list = new ArrayList<T>();

    public PageUtil() {
    }

    public PageUtil(Integer totalCount, Integer currPageNo, List<T> list) {
        this.totalCount = totalCount;
        this.currPageNo = currPageNo;
        this.list = list;
    }

}

